#!/bin/bash

echo "开始安装命令"
curl -L -O "https://gitee.com/dotions/dev-tools/raw/master/scripts/idea"
mv ./idea /usr/local/bin/idea
sudo chmod a+x /usr/local/bin/idea
echo "命令安装完毕"


echo "使用示例："
echo "1、用idea打开当前路径：idea ."
echo "2、用idea打开指定路径：idea ~/Documents/code/demo"
echo "3、用idea打开指定文件：idea ~/Documents/demo.xml"
